﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Highkick.Dialogs
{
    public partial class HConfig : Krile.Kernel.Control.ConfigPage
    {
        public HConfig()
        {
            InitializeComponent();
        }

        private void HConfig_Load(object sender, EventArgs e)
        {
            ReceiveInterval.Value = Core.Config.ReceiveInterval;
        }

        public override void Apply()
        {
            Core.Config.ReceiveInterval = (int)ReceiveInterval.Value;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            using (var ac = new Account())
            {
                ac.ShowDialog();
            }
        }
    }
}
